Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Sametime Forum

HCL Sametime Forum


  

PreviousPrevious NextNext


~Richard Chufootherings 25.Feb.11 08:02 PM a Web browser
Applications development All Releases All Platforms


I am trying to send message programatically to an user from java using ST SDK.
My class implements ResolveListener and LoginListener.
I think I am doing everything right but the Resolver won't fire any events after called. Here is a part of my code:

m_session=new STSession("xx"+this);
m_session.loadSemanticComponents();
m_session.start();
m_comm=(CommunityService)m_session.getCompApi(CommunityService.COMP_NAME);
m_comm.addLoginListener(this);

char[] pwd={'t','e','s','t'};
m_comm.loginByPassword("10.1.2.1","Test User",pwd);
Thread.sleep(100000);
m_comm.logout();
m_session.stop();
m_session.unloadSession();
...

public void loggedIn(LoginEvent arg0) {
System.out.println("Logged in ");
ls=(LookupService)m_session.getCompApi(LookupService.COMP_NAME);
resolver.createResolver(false,true,true,false);
resolver.addResolveListener(this);
resolver.resolve("Test2 Test2");
}
public void resolved(ResolveEvent arg0) {
System.out.println("Resolve Success");
}

I can clearly see that the login is successfull but after that no events are generated by the resolver and
resloved,resolveFailed not resolveConflict get called.
Using STclient I can see that both 'Test User' and 'Test2 Test2' are logged in and available.

Searching the forum I found out that other members had the exactly same problem ,but I could not find out if they solved it and how.

I tried the code with different versions of STComm.jar (8.5.1,8.0.1,7.5.1), two different enviroments SDP 6.0 and SDP 7.5 and two OS XP and W2K. All behaved the same

The rest of my code works ok, e.g If I receive IM I am able to respond to it.
The Resolver problem causes me that I can't start conversation.

Any help is appreciated.







Resolver not firing events (~Richard Chufoo... 25.Feb.11)
. . RE: Resolver not firing events (~Fritz Ekfoober... 26.Feb.11)
. . . . RE: Resolver not firing events (~Richard Chufoo... 27.Feb.11)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS